#pragma once
#include "LatoolException.h"
#include "IMatrix.h"

namespace LatoolNet {

	using namespace System;

	ref class Validator {
	public:
		static void CheckMatrixRange(IMatrix^ mat, int row, int col) {
			if (row < 0 || col < 0 || row > mat->RowNum - 1 || col > mat->ColNum - 1) {
				throw gcnew LatoolException("(" + mat->RowNum.ToString() + ", " + mat->ColNum.ToString() + ") is out of range."); 
			}
		};



	};
}